Integrand size = 23, antiderivative size = 143 \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=-\frac {2 B \sqrt {b \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d \sqrt {\cos (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 b^2 d \sqrt {b \cos (c+d x)}}+\frac {2 A \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}+\frac {2 B \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {2827, 2716, 2721, 2720, 2719} \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 b^2 d \sqrt {b \cos (c+d x)}}+\frac {2 A \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}-\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \cos (c+d x)}}{b^3 d \sqrt {\cos (c+d x)}}+\frac {2 B \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Rule 2716
Rule 2719
Rule 2720
Rule 2721
Rule 2827
Rubi steps \begin{align*} \text {integral}& = A \int \frac {1}{(b \cos (c+d x))^{5/2}} \, dx+\frac {B \int \frac {1}{(b \cos (c+d x))^{3/2}} \, dx}{b} \\ & = \frac {2 A \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}+\frac {2 B \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {A \int \frac {1}{\sqrt {b \cos (c+d x)}} \, dx}{3 b^2}-\frac {B \int \sqrt {b \cos (c+d x)} \, dx}{b^3} \\ & = \frac {2 A \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}+\frac {2 B \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {\left (A \sqrt {\cos (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^2 \sqrt {b \cos (c+d x)}}-\frac {\left (B \sqrt {b \cos (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{b^3 \sqrt {\cos (c+d x)}} \\ & = -\frac {2 B \sqrt {b \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d \sqrt {\cos (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 b^2 d \sqrt {b \cos (c+d x)}}+\frac {2 A \sin (c+d x)}{3 b d (b \cos (c+d x))^{3/2}}+\frac {2 B \sin (c+d x)}{b^2 d \sqrt {b \cos (c+d x)}} \\ \end{align*}
Time = 0.10 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.61 \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\frac {2 \left (-3 B \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+3 B \sin (c+d x)+A \tan (c+d x)\right )}{3 b^2 d \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(405\) vs. \(2(179)=358\).
Time = 6.41 (sec) , antiderivative size = 406, normalized size of antiderivative = 2.84
method | result | size |
default | \(\frac {2 \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (2 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-12 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+6 B \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3 B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 b^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \left (4 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(406\) |
parts | \(-\frac {2 A \left (-2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}}{3 b^{2} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}-\frac {2 B \left (-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{b^{2} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(441\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 192, normalized size of antiderivative = 1.34 \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\frac {-i \, \sqrt {2} A \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} A \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 i \, \sqrt {2} B \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 3 i \, \sqrt {2} B \sqrt {b} \cos \left (d x + c\right )^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + 2 \, {\left (3 \, B \cos \left (d x + c\right ) + A\right )} \sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, b^{3} d \cos \left (d x + c\right )^{2}} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\left (b \cos \left (d x + c\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \cos (c+d x)}{(b \cos (c+d x))^{5/2}} \, dx=\int \frac {A+B\,\cos \left (c+d\,x\right )}{{\left (b\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]